package com.thf.controller;

import com.thf.model.NewsModels;
import com.thf.model.ProductModels;
import com.thf.model.ResultData;
import com.thf.service.ProductService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
public class ProductInfoController {
    @Resource
    private ProductService productService;
    @RequestMapping("/product/info")
    public ResultData<List<ProductModels>> findProductInfoPage(Integer id){
        List<ProductModels> list = productService.findProductInfoPage(id);
        return new ResultData<>(0, list);
    }
}
